#!/bin/bash
work_path=$(dirname $0)
cd ${work_path}
CURRENT_PATH=$PWD
echo "remove nginx"
service nginx stop
apt-get remove nginx nginx-common -y
apt-get purge nginx nginx-common -y
apt-get autoremove -y
apt-get remove nginx-full nginx-common -y
rm /etc/nginx -rf
rm /usr/sbin/nginx 
